/**
 * @author: HenryDai
 * @Date: 2022/04/30 19:06
 * @description:
 */
public class demo {

    public static void main(String[] args) {
        double a = 12.4;
        double b=2.3;
        Computer computer = new Computer();
        computer.setStrategy(new Add());
        computer.doOperation(a, b);
        computer.setStrategy(new Divide());
        computer.doOperation(a, b);
        computer.setStrategy(new Multiply());
        computer.doOperation(a, b);
        computer.setStrategy(new Subtract());
        computer.doOperation(a, b);
    }

}
